<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <%--静态包含BASE标签CSS样式 JS文件--%>
    <%@ include file="/page/common/head.jsp"%>

</head>
<body>

<div class="layui-carousel" id="test1">
    <div carousel-item>
        <div><img src="static/img/01.jifi"></div>
        <div><img src="static/img/02,jifi"></div>
        <div><img src="static/img/03.jifi"></div>
        <div><img src="static/img/04.jifi"></div>
        <div><img src="static/img/05.jifi"></div>
    </div>
</div>

<form class="layui-form" action="userServlet" method="post">
    <input type="hidden" name="action" value="login">
    <div><a href="RegistServlet" style="color: #ff0000">立即注册</a> </div>
    <div class="errorMsg"> ${empty requestScope.msg ?"请输入用户名和密码":requestScope.msg}</div>

    <div class="layui-form-item">
        <label class="layui-form-label">用户名称:</label>
        <div class="layui-input-inline">
            <input type="text" name="username" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input"  value="${requestScope.username}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">用户密码</label>
        <div class="layui-input-inline">
            <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo" id="sub_btn" value="登录">登录</button>
                <button type="reset" class="layui-btn layui-btn-primary">取消</button>
            </div>
        </div>
    </div>
</form>

<script>
    layui.use('carousel', function(){
        var carousel = layui.carousel;
        //建造实例
        carousel.render({
            elem: '#test1'
            ,width: '100%' //设置容器宽度
            ,arrow: 'always' //始终显示箭头
            //,anim: 'updown' //切换动画方式
        });
    });
</script>


</body>
</html>